package webEquipeRechercheGwt.client.callback.consultation;

import java.util.Collection;

import webEquipeRechercheGwt.client.callback.consultation.commands.CommandGetAllPersons;
import webEquipeRechercheGwt.client.entityMirror.PersonMirror;

import com.google.gwt.user.client.rpc.AsyncCallback;

public class CallBackGetAllPerson implements AsyncCallback<Collection<PersonMirror>> {

	private CommandGetAllPersons cmd;
	
	public CallBackGetAllPerson(CommandGetAllPersons cmd) {
		this.cmd = cmd;
	}

	@Override
	public void onFailure(Throwable caught) {
		// TODO Auto-generated method stub
	}

	@Override
	public void onSuccess(Collection<PersonMirror> result) {
		cmd.execute(result);
	}

}
